import axios from "@/axios";

//获取侧边栏的列表数据
export function getImageList(page)
{
    return axios.get("/admin/image_class/"+page);
}
//新增分类
export function addClass(data)
{
    return axios.post("/admin/image_class",data);
}
//修改分类
export function changeClass(id,data)
{
    return axios.post("/admin/image_class/"+id,data);
}
//修改分类
export function deleteClass(id)
{
    return axios.post(`/admin/image_class/${id}/delete`);
}